//
//  InAppPurchase.h
//  Brand
//
//  Created by Lin Eidan on 14-5-20.
//  Copyright (c) 2014年 Faker. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <StoreKit/StoreKit.h>

@protocol InAppPurchaseDelegate;

@interface InAppPurchase : NSObject<SKProductsRequestDelegate,SKPaymentTransactionObserver>

@property (weak, nonatomic) id<InAppPurchaseDelegate>delegate;

+ (InAppPurchase *)sharedInstance;

-(void)getVIP:(NSString *)type;

@end


@protocol InAppPurchaseDelegate <NSObject>

@optional

-(void)InAppPurchaseSccessOrNot:(BOOL)isSuccess;

@end
